#ifndef DRAWER_H
#define DRAWER_H

#include <QWidget>

class Drawer : public QWidget
{
    Q_OBJECT
public:
    explicit Drawer(QWidget *parent = 0);

signals:

public slots:
    void openDraw();
    void closeDraw();

public:
    void drawCurves(QPainter& painter);
    void drawGrid(QPainter& painter);

private:
    void paintEvent(QPaintEvent*);
    void timerEvent(QTimerEvent*);

public:
    int _myTimerId;
    int _xpos;
    int _displayDatalypos;
    int _displayDatafypos;
    int _displayDatacharge;
    bool _close;

};

#endif // DRAWER_H
